themingengine: Remove unnecessary optimization
authorBenjamin Otte <otte@redhat.com>
Fri, 10 Jun 2011 23:32:43 +0000 (01:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 11 Jun 2011 00:04:17 +0000 (02:04 +0200)
Code is likely as fast or faster without it, and this saves code.

gtk/gtkthemingengine.c

index dc59928c68d43a0c0be32a9ec9756d664e107bec..6c5d5f0318ab48afd724ec813a8a65694bebefbc 100644 (file)
@@ -1957,37 +1957,12 @@ render_frame_internal (GtkThemingEngine *engine,
 
       gdk_cairo_set_source_rgba (cr, &border_color);
 
-      if (uniform_border)
-        {
-          if (border_width > 1)
-            {
-              x += (gdouble) border_width / 2;
-              y += (gdouble) border_width / 2;
-              width -= border_width;
-              height -= border_width;
-            }
-          else if (border_width == 1)
-            {
-              x += 0.5;
-              y += 0.5;
-              width -= 1;
-              height -= 1;
-            }
-
-          _cairo_round_rectangle_sides (cr, &border_radius,
-                                        x, y, width, height,
-                                        SIDE_ALL & ~(hidden_side));
-          cairo_stroke (cr);
-        }
-      else
-        {
-          cairo_save (cr);
-          _cairo_uneven_frame (cr, &border_radius,
-                               x, y, width, height,
-                               &border);
-          cairo_fill (cr);
-          cairo_restore (cr);
-        }
+      cairo_save (cr);
+      _cairo_uneven_frame (cr, &border_radius,
+                           x, y, width, height,
+                           &border);
+      cairo_fill (cr);
+      cairo_restore (cr);
 
       break;
     case GTK_BORDER_STYLE_INSET: